{extend name="Public/public"}
{block name="title"}导航栏列表{/block}
{block name="main"}
  <div class="col-xs-12"> 
   <div class="table-responsive"> 

    <table id="sample-table-1" class="table table-striped table-bordered table-hover"style="margin-top:10px"> 
     <thead> 
      <tr> 
    
      
       <th>编号</th> 
       <th>导航栏名称名称</th> 
       <th>是否主页显示</th>
       <th><i class="icon-time bigger-110 hidden-480"></i>操作</th>
      </tr> 
     </thead> 
     <tbody> 
     {if condition="is_array($data)"}
      {foreach name="data" item="row"}
      <tr> 
      
       <td>{$row.id}</td> 
       <td>{$row.name}</td>
       <td>
       {switch name="$row.static"}
       {case value="1"}是{/case}
       {case value="2"}不是{/case}
       {/switch}
       </td>  
        {if condition="$row.urls eq 2"}
         <td><a href="/nav/edit/id/{$row.id}">修改单网页</a>&nbsp;<a href="/nav/delete/id/{$row.id}">删除</a></td>{else/}
           <td><a href="/nav/add/id/{$row.id}">新增子菜单</a>&nbsp;<a href="/nav/edit/id/{$row.id}">修改导航栏</a>&nbsp;<a href="/nav/delete/id/{$row.id}">删除</a>&nbsp;&nbsp;<a href="/nav/essay/id/{$row.id}">添加/修改文章</a></td>
        {/if}
      </tr> 
      {/foreach}
     {/if}
 
      
      
     </tbody> 
    </table> 
   </div>
   <!-- /.table-responsive --> 
  </div>


{/block}